import axios from '../utils/utils'

//登录
export let login = params =>  axios.post("/users/checkLogin",params )

//添加管理员帐号
export let addaccount = params => axios.post("/users/add",params)

//获取管理员帐号列表
export let accountlist = params => axios.get("/users/list",{params})

//删除管理员帐号
export let accountdel = params => axios.get("/users/del",{params})

//批量删除管理员帐号
export let accountbatchdel = params => axios.get("/users/batchdel",{params})

//修改管理员帐号
export let accountedit = params => axios.post("/users/edit",params)

//检查旧密码是否正确 
export let checkoldpwd = params => axios.get("/users/checkoldpwd",{params})

//修改密码
export let editpwd = params => axios.post("/users/editpwd",params)

//获取帐号信息
export let accountinfo = params => axios.get("/users/accountinfo",{params})

//token
export let checktoken = params => axios.get("/users/checktoken",{params})

